fastCSharp.LoadViewType(diantou.examProblem=function(Value)
	{
	fastCSharp.Copy(this,Value);
	this.Path={
		Preview:'/enterprise/problemPreview.html#!problemId='+this.Id,
		Description:'/enterprise/problemDescription.html#!problemId='+this.Id
		};
	});
diantou.examProblem.prototype={
MemoryLimitKB:function()	{	return this.MemoryLimit>>10; },
ClientAutoShowTime:function()	{	return (this.AutoShowTime.ToInt()==(1900<<9)+(1<<5)+1?Date.FromInt((new Date).ToInt()).AddHours(9+30*24):this.AutoShowTime).ToSecondString();	},
IsAutoShowTime:function()	{	return this.AutoShowTime.ToInt()!=(1900<<9)+(1<<5)+1;	},
ProblemPath:function()	{	return diantou.problem.Get({Id:this.ProblemId}).Path;	},
UserJudge:function()
	{
	for(var Judges=fastCSharp.PageView.SkinValue.SkinValue.judges||[],Index=Judges.length;Index;)
		{
		var Judge=Judges[--Index];
		if(Judge.Judge.ProblemId==this.Id)	return Judge;
		}
	},
UserJudgeItems:function()
	{
	var Judge=this.UserJudge();
	return Judge?Judge.Items:null;
	},
UserAnswer:function()
	{
	var User=fastCSharp.PageView.SkinValue.SkinValue.user;
	if(User&&User.Remote&&User.Remote.Answers)
		{
		for(var Answers=User.Remote.Answers,Index=Answers.length;Index;)
			{
			var Answer=Answers[--Index];
			if(Answer.Type=='Problem'&&Answer.QuestionId==this.Id)	return Answer;
			}
		}
	},
JudgePoint:function()
	{
	var Answer=this.UserAnswer();
	return Answer?Answer.JudgePoint:0;
	},
AddPoint:function()
	{
	var Answer=this.UserAnswer();
	return Answer?Answer.Point:0;
	},
ResultPoint:function()
	{
	var Answer=this.UserAnswer();
	return Answer?Answer.JudgePoint+Answer.Point:0;
	},
IsUserLog:function()
	{
	var Ids=fastCSharp.PageView.SkinValue.SkinValue.user.LogProblemIds.Value;
	if(Ids)	for(var Index=Ids.length;Index;)	if(Ids[--Index]==this.Id)	return 1;
	}
		};